package com.burst.reptile.modular.api.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.burst.reptile.framework.web.controller.BaseController;
import com.burst.reptile.framework.web.result.Result;
import com.burst.reptile.modular.zp.service.IZpQuestionTypeService;

import lombok.RequiredArgsConstructor;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wujin
 * @since 2020-07-09
 */
@RestController
@RequestMapping("/zp/questiontype")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ZpQuestionTypeController extends BaseController{

	private final IZpQuestionTypeService questionTypeService;
	
	/**
	 * 获取所有咨询列表
	 * @return
	 */
	@GetMapping("/all")
	public Result<Object> all(){
		return Result.success(questionTypeService.list()); 
	}
}
